import { $t } from "@/plugins/i18n";
import { home } from "@/router/enums";

const Layout = () => import("@/layout/index.vue");

export default {
  path: "/",
  name: "Home",
  component: Layout,
  redirect: "/workspace/index",
  meta: {
    icon: "homeFilled",
    title: $t("menus.hshome"),
    rank: home,
    roles: ["admin", "common"]
  },
  children: [
    {
      path: "/workspace/index",
      name: "Workspace",
      component: () => import("@/views/workspace/index.vue"),
      meta: {
        title: $t("menus.hsMyLab")
      }
    }
    // {
    //   path: "/workspace/expconfig/index",
    //   name: "Expconfig",
    //   component: () => import("@/views/workspace/expconfig/index.vue"),
    //   meta: {
    //     title: $t("menus.hsExpConfig")
    //   }
    // },
    // {
    //   path: "/workspace/monitor/index",
    //   name: "Monitor",
    //   component: () => import("@/views/workspace/monitor/index.vue"),
    //   meta: {
    //     // showLink: false,
    //     // activePath: "/workspace/index",
    //     title: $t("menus.hsMonitor")
    //   }
    // },
    // {
    //   path: "/workspace/experiments/index",
    //   name: "Experiments",
    //   component: () => import("@/views/workspace/experiments/index.vue"),
    //   meta: {
    //     // showLink: false,
    //     // activePath: "/workspace/index",
    //     title: $t("menus.hsExperiments")
    //   }
    // }
  ]
} as RouteConfigsTable;
